package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品信息对象 hh_product
 * @author chongjin
 * @date 2020-11-19
 */
public class HhProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品名
     */
    @Excel(name = "商品名")
    private String productName;

    /**
     * 规格id
     */
    private Long sizeId;

    /**
     * 商品规格
     */
    @Excel(name = "规格名")
    private String productSize;

    /**
     * 品牌id
     */
    private Long brandId;

    /**
     * 商品品牌
     */
    @Excel(name = "品牌名")
    private String productBrand;

    /**
     * 零售价
     */
    @Excel(name = "零售价")
    private String productPrice;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String productUnit;

    /**
     * 批发价
     */
    @Excel(name = "批发价")
    private String purchasePrice;

    /**
     * 图片路径
     */
    private String productImg;

    /**
     * 类型id
     */
    private Long typeId;

    /**
     * 父级类型id
     */
    private Long typeParentId;

    /**
     * 商品分类
     */
    @Excel(name = "小分类名")
    private String productType;

    /**
     * 删除
     */
    private Long isDel;

    /**
     * 权重
     */
    private Long selectCount;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long productStore;

    /**
     * 简称
     */
    @Excel(name = "简称")
    private String productShortName;

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductSize(String productSize) {
        this.productSize = productSize;
    }

    public String getProductSize() {
        return productSize;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand;
    }

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setIsDel(Long isDel) {
        this.isDel = isDel;
    }

    public Long getIsDel() {
        return isDel;
    }

    public void setSelectCount(Long selectCount) {
        this.selectCount = selectCount;
    }

    public Long getSelectCount() {
        return selectCount;
    }

    public void setProductStore(Long productStore) {
        this.productStore = productStore;
    }

    public Long getProductStore() {
        return productStore;
    }

    public void setProductShortName(String productShortName) {
        this.productShortName = productShortName;
    }

    public String getProductShortName() {
        return productShortName;
    }

    public Long getSizeId() {
        return sizeId;
    }

    public void setSizeId(Long sizeId) {
        this.sizeId = sizeId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public Long getTypeParentId() {
        return typeParentId;
    }

    public void setTypeParentId(Long typeParentId) {
        this.typeParentId = typeParentId;
    }

    public String getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(String purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("productSize", getProductSize())
                .append("productBrand", getProductBrand())
                .append("productPrice", getProductPrice())
                .append("typeId", getTypeId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("isDel", getIsDel())
                .append("selectCount", getSelectCount())
                .append("productStore", getProductStore())
                .append("productShortName", getProductShortName())
                .toString();
    }
}
